package com.cmc.cloud.cmclink.doc.convert;

import com.cmc.cloud.cmclink.doc.entity.SuperWhitelistOogDO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistOogBaseVO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistOogExportVO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistOogRespVO;
import com.cmc.cloud.cmclink.doc.vo.superwhitelistvo.SuperWhitelistOogUpdateReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 有条件接载清单(OOG) Convert
 *
 * @author 集运管理员
 */
@Mapper
public interface SuperWhitelistOogConvert {

    SuperWhitelistOogConvert INSTANCE = Mappers.getMapper(SuperWhitelistOogConvert.class);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SuperWhitelistOogDO convert(SuperWhitelistOogBaseVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SuperWhitelistOogDO convert(SuperWhitelistOogUpdateReqVO bean);

    /**
     * 属性转换 convert
     *
     * @param bean
     * @return
     */
    SuperWhitelistOogRespVO convert(SuperWhitelistOogDO bean);

    /**
     * 属性转换 convert
     *
     * @param list
     * @return
     */
    List<SuperWhitelistOogRespVO> convertList(List<SuperWhitelistOogDO> list);

    /**
     * 属性转换 convert
     *
     * @param superWhitelistOogDOList
     * @return
     */
    List<SuperWhitelistOogExportVO> convertExportVo(List<SuperWhitelistOogDO> superWhitelistOogDOList);

}
